package day240519_report.e5;

import java.time.LocalDate;

public class Dean extends Teacher{
    private double adminAward;

    public Dean(String name, String address, int age, String sex, double salary, LocalDate dateHired, String department, String speciality, double postAllowance, double adminAward) {
        super(name, address, age, sex, salary, dateHired, department, speciality, postAllowance);
        this.adminAward = adminAward;
    }

    @Override
    public double getSalary() {
        return super.getSalary() + adminAward;
    }
}
